//
//  SelectFindHttp.m
//  庐山通
//
//  Created by zcj on 15-10-24.
//  Copyright (c) 2015年 郑朝军. All rights reserved.
//

#import "SelectFindHttp.h"
#import "Http.h"

@implementation SelectFindHttp
+(void)getWirhUrl:(NSString*)url parms:(NSDictionary*)parms success:(void(^)(id json))success failture:(void(^)(id error))failture
{
    //@synchronized(self){
        [Http getWithURL:url params:parms success:^(id json) {
            NSLog(@"%@",[NSThread currentThread]);
            if(success){
                success(json);
            }
        } failure:^(NSError *error) {
            if(failture){
                failture(error);
            }
        }];
    //}
}

+(void)postWirhUrl:(NSString*)url parms:(NSDictionary*)parms success:(void(^)(id json))success failture:(void(^)(id error))failture
{
    
[Http postWithURL:url params:parms success:^(id json) {
if(success){
success(json);
}
} failure:^(NSError *error) {
    if(failture){
        failture(error);
    }
}];


}



@end
